package com.pay.web.utils;

import com.pay.wxpay.WXPay;
import com.pay.wxpay.WXPayConfig;

import java.util.Map;

/**
 * Created by chenweiyi on 2018/2/5.
 */
public class WeixinPayUtils {

    /**
     * 下单
     */
    public static Map<String,String> postPayAction(Map<String,String> parameters,String notifyUrl)throws Exception{
        WXPayConfig config = new WXConfigPayImpl();
        WXPay wxPay = new WXPay(config,notifyUrl);
        Map<String,String> result = wxPay.unifiedOrder(parameters);
        return result;
    }

}
